<?php session_start(); ?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ประกันภัยรถยนต์</title>
<link href="css/stylesheet.css" rel="stylesheet" type="text/css" />
<script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
<script type="text/javascript">
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
</script>
<script type="text/javascript" src="Scripts/jquery-1.2.6.pack.js"></script>
<script type="text/javascript" src="Scripts/stepcarousel.js"></script>
</head>

<body>
<table width="918" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="421"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="10"><img src="images/bg-hd1.jpg" width="10" height="421"></td>
        <td bgcolor="#FFFFFF"><object id="FlashID2" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="1117" height="432">
          <param name="movie" value="flash/header.swf">
          <param name="quality" value="high">
          <param name="wmode" value="transparent">
          <param name="swfversion" value="6.0.65.0">
          <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
          <param name="expressinstall" value="Scripts/expressInstall.swf">
          <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
          <!--[if !IE]>-->
          <object type="application/x-shockwave-flash" data="flash/header.swf" width="1117" height="432">
            <!--<![endif]-->
            <param name="quality" value="high">
            <param name="wmode" value="transparent">
            <param name="swfversion" value="6.0.65.0">
            <param name="expressinstall" value="Scripts/expressInstall.swf">
            <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
            <div>
              <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
              <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
            </div>
            <!--[if !IE]>-->
          </object>
          <!--<![endif]-->
        </object></td>
        <td width="9" align="right"><img src="images/bg-hd2.jpg" width="9" height="421"></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="9" valign="top" background="images/bgl2.jpg"><img src="images/bgl.jpg" width="9" height="338" /></td>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td background="images/bg-menu.jpg">
            <?php include "top_menu.php"; ?>
            </td>
          </tr>
          <tr>
            <td height="3" bgcolor="#FFFFFF"><img src="images/spacer.gif" width="1" height="3" /></td>
          </tr>
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="9"><img src="images/pblog08.jpg" width="9" height="43" alt="" /></td>
                <td align="center" background="images/pblog09.jpg"><object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="874" height="39">
                  <param name="movie" value="flash/banner1.swf">
                  <param name="quality" value="high">
                  <param name="wmode" value="transparent">
                  <param name="swfversion" value="6.0.65.0">
                  <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
                  <param name="expressinstall" value="Scripts/expressInstall.swf">
                  <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
                  <!--[if !IE]>-->
                  <object type="application/x-shockwave-flash" data="flash/banner1.swf" width="874" height="39">
                    <!--<![endif]-->
                    <param name="quality" value="high">
                    <param name="wmode" value="transparent">
                    <param name="swfversion" value="6.0.65.0">
                    <param name="expressinstall" value="Scripts/expressInstall.swf">
                    <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
                    <div>
                      <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
                      <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
                    </div>
                    <!--[if !IE]>-->
                  </object>
                  <!--<![endif]-->
                </object></td>
                <td width="9"><img src="images/pblog10.jpg" width="9" height="43" alt="" /></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td><?php include 'gallery.php'; ?></td>
                    <td width="20">&nbsp;</td>
                    <td width="18" align="left"><a href="javascript:stepcarousel.stepBy('mygallery', 3)"><img src="images/banner-next.jpg" title="Next &gt;&gt;"  border="0" /></a></td>
                    <td width="15" align="left">&nbsp;</td>
                  </tr>
                </table></td>
                <td width="8" bgcolor="#FFFFFF">&nbsp;</td>
                </tr>
            </table></td>
          </tr>
          <tr>
            <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td height="10"><img src="images/spacer.gif" width="1" height="10" /></td>
              </tr>
              <tr>
                <td height="14"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="20">&nbsp;</td>
                    <td background="images/pblog11.jpg"><img src="images/welcome.jpg" width="284" height="37" alt="" /></td>
                    <td width="10">&nbsp;</td>
                    </tr>
                  </table></td>
              </tr>
              <tr>
                <td height="14"><img src="images/spacer.gif" width="1" height="14" /></td>
              </tr>
              <tr>
                <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="8" bgcolor="#FFFFFF">&nbsp;</td>
                    <td width="270" valign="top" bgcolor="#212121">
                    <!--side-->
                    <?php include "side.php"; ?>
                      <!--  Side-->
                        </td>
                    <td width="18"><img src="images/spacer.gif" width="18" height="1" /></td>
                    <td valign="top">
<link rel="stylesheet" href="admin/css/validationEngine.jquery.css" type="text/css" media="screen" title="no title" charset="utf-8" />
<link href="css/blitzer/jquery-ui-1.8.16.custom.css" rel="stylesheet" type="text/css" />
<script src="admin/js/jquery-1.6.2.min.js" type="text/javascript"></script>
<script src="admin/js/jquery.validationEngine.js" type="text/javascript"></script>
	<script type="text/javascript" src="js/jquery-ui-1.8.16.custom.min.js"></script>
                    <script>
						$(function() {
							$( "#datepicker" ).datepicker({
								dateFormat: 'yy-mm-dd'
							});
						});
					</script>
                     <form action="buy_complete.php" id="form1" name="form1" method="post">
                      <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                              <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                  <td width="5"><img src="images/pblog01.jpg" width="5" height="42" /></td>
                                  <td background="images/pblog13.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                      <td width="15">&nbsp;</td>
                                      <td><h2><strong class="text4">รายละเอียดการสั่งซื้อ</strong> >><span class="text4"> ข้อมูลบุคคลและจัดส่ง</span> >><span class="text7"> ข้อมูลรถยนต์ </span>>> เสร็จสิ้น</h2></td>
                                    </tr>
                                  </table></td>
                                  <td width="4"><img src="images/pblog12.jpg" width="4" height="42" alt="" /></td>
                                </tr>
                              </table></td>
                            </tr>
                            <tr>
                              <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                  <td width="12" background="images/pblog23.jpg"><img src="images/pblog23.jpg" width="12" height="2" alt="" /></td>
                                  <td bgcolor="#E2E2E2" class="links">
                                  
                                  <table width="80%" border="0" align="center" cellpadding="3" cellspacing="0">
                                    <tr>
                                      <td>&nbsp;</td>
                                    </tr>
                                  </table>
                                  <table width="80%" border="0" align="center" cellpadding="3" cellspacing="0" style="border:1px solid #000;">
                                    <tr>
                                      <td colspan="2" align="center" bgcolor="#003333" class="text4"><strong>ข้อมูลรถ</strong></td>
                                      </tr>
                                    <tr>
                                      <td width="50%" align="right" style="border-right: 1px solid #000;">ลักษณะรถยนต์</td>
                                      <td width="50%" height="50" align="left"><label for="car_type"></label>
                                        <select name="car_type" id="car_type" class="validate[required,length[3,100]] dd">
                                        	<option selected value="">กรุณาเลือก</option>
                                            <option value="รถเก๋ง">รถเก๋ง</option>
                                            <option value="รถกระบะ">รถกระบะ</option>
                                            <option value="รถตู้">รถตู้</option>
                                            <option value="อื่นๆ">อื่นๆ</option>
                                        </select>                                        
                                        <label for="name"></label>
                                        </td>
                                      </tr>
                                    <tr>
                                      <td align="right" style="border-right: 1px solid #000;">ลักษณะการใช้รถยนต์</td>
                                      <td height="50" align="left"><label for="use_type"></label>
                                        <select name="use_type" id="use_type" class="validate[required,length[3,100]] dd">
                                        	<option selected value="">กรุณาเลือก</option>
                                            <option value="ใช้ส่วนบุคคล">ใช้ส่วนบุคคล</option>
                                            <option value="ใช้การพาณิชย์">ใช้การพาณิชย์</option>
                                        </select>                                        
                                        <label for="name"></label></td>
                                    </tr>
                                    <tr>
                                      <td align="right" style="border-right: 1px solid #000;">ยี่ห้อรถ</td>
                                      <td height="50" align="left"><label for="car_brand"></label>
                                        <input type="text" name="car_brand" id="car_brand"  class="validate[required]"></td>
                                    </tr>
                                    <tr>
                                      <td align="right" style="border-right: 1px solid #000;">รุ่นรถ</td>
                                      <td height="50" align="left"><label for="car_model"></label>
                                        <input type="text" name="car_model" id="car_model"  class="validate[required]"></td>
                                    </tr>
                                    <tr>
                                      <td align="right" style="border-right: 1px solid #000;">ปีรถ</td>
                                      <td height="50" align="left"><label for="car_year"></label>
                                        <input type="text" name="car_year" id="car_year" class="validate[required,custom[onlyNumber]]">                                        <label for="detail"></label></td>
                                    </tr>
                                    <tr>
                                      <td align="right" style="border-right: 1px solid #000;">เลขทะเบียน</td>
                                      <td height="50" align="left"><label for="car_no"></label>
                                        <input type="text" name="car_no" id="car_no"  class="validate[required]"></td>
                                    </tr>
                                    <tr>
                                      <td align="right" style="border-right: 1px solid #000;">ขนาดเครื่องยนต์</td>
                                      <td height="50" align="left"><label for="car_cc"></label>
                                        <input type="text" name="car_cc" id="car_cc" class="validate[required,custom[onlyNumber]]"></td>
                                    </tr>
                                    <tr>
                                      <td align="right" style="border-right: 1px solid #000;">เลขตัวถัง</td>
                                      <td height="50" align="left"><label for="car_sn"></label>
                                        <input type="text" name="car_sn" id="car_sn" class="validate[required]"></td>
                                    </tr>
                                    <tr>
                                      <td align="right" style="border-right: 1px solid #000;">วันที่ต้องการเริ่มคุ้มครอง</td>
                                      <td height="50" align="left"><input name="datepicker" id="datepicker" type="text"   size="10" class="validate[required]" readonly></td>
                                    </tr>
                                    <tr>
                                      <td align="right" style="border-right: 1px solid #000;">รหัสความปลอดภัย :</td>
                                      <td bgcolor="#E2E2E2" class="TH12blackd"><table width="100%" border="0" cellspacing="0" cellpadding="3">
                                        <tr>
                                          <td><img src="captcha.php"></td>
                                        </tr>
                                        <tr>
                                          <td><input type="text" name="font" id="font"></td>
                                        </tr>
                                      </table></td>
                                    </tr>
                                  </table>
                                  <br>
                                  <br>
                                  <table width="50%" border="0" align="center" cellpadding="0" cellspacing="0">
                                    <tr>
                                      <td align="center"><input name="province" type="hidden" id="province" value="<?=$_POST['province']?>">
                                        <input type="hidden" name="unique_id" id="unique_id" value="<?=date("YmdHis");?>">
                                        <input name="name" type="hidden" id="name" value="<?=$_POST['name']?>">
                                        <input name="tel" type="hidden" id="tel" value="<?=$_POST['tel']?>">
                                        <input name="email" type="hidden" id="email" value="<?=$_POST['email']?>">
                                        <input name="address" type="hidden" id="address" value="<?=$_POST['address']?>">
                                        <input name="detail" type="hidden" id="detail" value="<?=$_POST['detail']?>">
<input name="pay_type" type="hidden" id="pay_type" value="<?=$_POST['pay_type']?>">
                                        <input name="insure" type="hidden" id="insure" value="<?=$_POST['insure']?>">                                        <input type="submit" name="button2" id="button2" value="สั่งซื้อ">
                                        <input name="action" type="hidden" id="action" value="add">
                                        <input name="price" type="hidden" id="price" value="<?=$_POST['price']?>"></td>
                                    </tr>
                                  </table></td>
                                  <td background="images/pblog24.jpg"><img src="images/pblog24.jpg" width="12" height="2" alt="" /></td>
                                </tr>
                                <tr>
                                  <td><img src="images/pblog02.jpg" width="12" height="17" alt="" /></td>
                                  <td background="images/pblog03.jpg">&nbsp;</td>
                                  <td width="12"><img src="images/pblog04.jpg" width="12" height="17" alt="" /></td>
                                </tr>
                              </table></td>
                            </tr>
                          </table></td>
                        </tr>
                        <tr>
                          <td>&nbsp;</td>
                        </tr>
                        </table>
                        </form>                        </td>
                    <td width="8" bgcolor="#FFFFFF">&nbsp;</td>
                    </tr>
                  </table></td>
              </tr>
              </table></td>
          </tr>
        </table></td>
        <td width="9" valign="top" background="images/bgr2.jpg"><img src="images/bgr.jpg" width="9" height="338" /></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="18"><img src="images/pblog05.jpg" width="18" height="19" alt="" /></td>
        <td background="images/pblog06.jpg">&nbsp;</td>
        <td width="18"><img src="images/pblog07.jpg" width="18" height="19" alt="" /></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td align="center" class="menu2"><?php include "bot_menu.php"; ?></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td align="center"><marquee scrollamount=2 onMouseOver="this.stop()" onMouseOut="this.start()" width="918" ><table align="center" border="0" cellpadding="0" cellspacing="0">
      <tbody>
        <tr>
          <td><?php include 'marquee.php'; ?></td>
        </tr>
      </tbody>
    </table></marquee></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<script type="text/javascript">
swfobject.registerObject("FlashID");
swfobject.registerObject("FlashID2");
</script>
</body>
</html>
